package top.qitun.bizz.shop.tshop.service.impl;

import java.util.Date;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.base.service.BaseServiceImpl;
import top.qitun.bizz.shop.tshop.dao.TShopDao;
import top.qitun.bizz.shop.tshop.entity.TShop;
import top.qitun.bizz.shop.tshop.entity.TShopBO;
import top.qitun.bizz.shop.tshop.service.TShopService;

/**
 * 
 * <br>
 * <b>功能：</b>TShopService<br>
 */
@Service("tShopService")
public class  TShopServiceImpl  extends BaseServiceImpl implements TShopService {
  Logger logger = LoggerFactory.getLogger(getClass());
	

	@Autowired
    private TShopDao dao;

		
	public TShopDao getDao() {
		return dao;
	}
	
	@Transactional(rollbackFor = Exception.class)
	@Override
	public TShop create(TShop shop) {
		dao.add(shop);
		return shop;
	}

	@Override
	public List<TShop> queryShopByAccount(Integer accountId) {
		return dao.queryShopByAccount(accountId);
	}

	@Override
	public List<TShopBO> queryMyShop(String mobile) {
		return dao.queryMyShop(mobile);
	}

	@Override
	public TShopBO queryDetail(TShopBO shop) {
		return dao.queryDetail(shop);
	}

}
